let data = [];
for (let t = 0; t < 25; t += 0.001) {
    let x = (1 + 0.25 * Math.cos(75 * t)) * Math.cos(t);
    let y = (1 + 0.25 * Math.cos(75 * t)) * Math.sin(t);
    let z = t + 2.0 * Math.sin(75 * t);
    data.push([x, y, z]);
}
let Template = [
    {
        id: 'Line3d_0001',
        component: 'Line3d', // 3d折线图
        style: {
            width: {
                value: 500,
                pixel: 500,
                unit: 'px'
            },
            height: {
                value: 350,
                pixel: 350,
                unit: 'px'
            },
            top: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            left: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            bottom: {
                value: '',
                unit: 'px'
            },
            right: {
                value: '',
                unit: 'px'
            },
            backgroundImage: {
                angle: 90,
                color: []
            },
            borderRadius: {
                value: 0,
                unit: 'px'
            },
            borderWidth: 0,
            borderStyle: 'solid',
            borderColor: '#FFFFFF',
            boxShadow: {
                level: 0,
                vertical: 0,
                blur: 0,
                spread: 0,
                color: '#000000FF'
            },
            rotate: 0,
            opacity: 100,
            'z-index': '1',
            backdropFilter: 0,
            filter: 0
        },
        attribute: {
            visible: true,
            chartOption: {
                type: 'line3D',
                option: {
                    tooltip: {},
                    visualMap: {
                        show: false,
                        dimension: 2,
                        min: 0,
                        max: 30,
                        inRange: {
                            color: [
                                '#313695',
                                '#4575b4',
                                '#74add1',
                                '#abd9e9',
                                '#e0f3f8',
                                '#ffffbf',
                                '#fee090',
                                '#fdae61',
                                '#f46d43',
                                '#d73027',
                                '#a50026'
                            ]
                        }
                    },
                    xAxis3D: {
                        type: 'value'
                    },
                    yAxis3D: {
                        type: 'value'
                    },
                    zAxis3D: {
                        type: 'value'
                    },
                    grid3D: {
                        viewControl: {
                            projection: 'orthographic'
                        }
                    },
                    series: [
                        {
                            type: 'line3D',
                            data: data,
                            lineStyle: {
                                width: 4
                            }
                        }
                    ]
                }
            }, // echarts统计图模板 object
            interval: -1, // 定时器间隔（毫秒） number
            page: 0,
            highlight: false,
            locked: false
        },
        animate: [],
        event: [],
        data: {
            url: '',
            key: [],
            type: 'static',
            datatype: 'json',
            method: '0',
            field: [],
            value: [] // 二维数组 存静态数据 二维数组
        }
    }
]

export default Template;